﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Collections.Generic;

public partial class BillGeted : PageBase
{
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            //从请求中获得标识ID
            string IntentionId = Context.Request.Params["IntentionId"];

            if (!string.IsNullOrEmpty(IntentionId))
            {
                //获取相应开单信息
                Chenxin.Lib.Business.BLL.t_Intention_BaseInfo bllBaseInfo = new Chenxin.Lib.Business.BLL.t_Intention_BaseInfo();
                Chenxin.Lib.Business.Entity.t_Intention_BaseInfo entBaseInfo = bllBaseInfo.GetBillInfo(new Guid(IntentionId));
                //转成Json，发回客户端
                hidBillGetedInfo.Value = Chenxin.Lib.Utility.JsonHelp.Convert2Json(entBaseInfo);
            }
            else
            {
                //Url参数出错，页面跳转
                Context.Response.Redirect(string.Format(ErrorPageUrl, Resources.Message.Err_UrlError), false);
            }
        }
        catch (Exception ex)
        {
            //Url参数出错，页面跳转
            Context.Response.Redirect(string.Format(ErrorPageUrl, ex.Message),false);
        }
    }
}
